import axios from 'axios'

// 获取歌手列表
export function getSingerList() {
  const url = 'https://v1.itooi.cn/netease/artist/top'
  return axios.get(url).then((res) => {
    return Promise.resolve(res.data)
  })
}
// 获取歌手歌曲详情
export function getSingerDetail(id) {
  const url = 'https://v1.itooi.cn/netease/song/artist'
  const data = {
    id: id
  }
  return axios.get(url, {
    params: data
  }).then((res) => {
    return Promise.resolve(res.data)
  })
}
